### Function Description

Query public script version list

### Request Parameters

#### Interface parameters

| Fields                | Type   | Required | Description                                                                                                                                 |
|-----------------------|--------|----------|---------------------------------------------------------------------------------------------------------------------------------------------|
| script_id             | string | yes      | Script ID                                                                                                                                   |
| return_script_content | bool   | no       | Whether the script content needs to be returned. True: returns script content; False: does not return script content. The default is false. |
| start                 | int    | no       | Start position of paging record, default 0                                                                                                  |
| length                | int    | no       | The maximum number of records returned in a single time is 1000 at most, default 20                                                         |

### Example of request

- GET

```json
/api/v3/get_public_script_version_list?script_id=000dbdddc06c453baf1f2decddf00c69&return_script_content=true&start=0&length=10
```

### Example of responses

```json
{
    "result": true,
    "code": 0,
    "data": {
        "data": [
            {
                "id": 1,
                "script_id": "000dbdddc06c453baf1f2decddf00c69",
                "version": "V1.0",
                "content": "#!/bin/bash***",
                "status": 1,
                "version_desc": "版本描述",
                "creator": "admin",
                "create_time": 1600746078520,
                "last_modify_user": "admin",
                "last_modify_time": 1600746078520,
                "script_language": 1,
                "public_script": true,
                "description": "脚本描述"
            }
        ],
        "start": 0,
        "length": 10,
        "total": 1
    },
    "job_request_id": "xxx"
}
```

### Response Description

{% include '_generic_response.md.j2' %}

#### data

| Fields           | Type   | Never null | Description                                                                       |
|------------------|--------|------------|-----------------------------------------------------------------------------------|
| id               | long   | yes        | Script version ID                                                                 |
| script_id        | string | yes        | Script ID to which the script version belongs                                     |
| version          | string | yes        | Version                                                                           |
| content          | string | no         | Script content                                                                    |
| status           | int    | yes        | Script version status (0: not online, 1: Online, 2: offline, 3: Disabled)         |
| version_desc     | string | no         | Version description                                                               |
| creator          | string | yes        | Creator                                                                           |
| create_time      | long   | yes        | Creation time Unix timestamp (ms)                                                 |
| last_modify_user | string | yes        | Last modify user                                                                  |
| last_modify_time | long   | yes        | Last modified time Unix timestamp (ms)                                            |
| script_language  | int    | yes        | Script language:1 - shell, 2 - bat, 3 - perl, 4 - python, 5 - powershell, 6 - sql |
| description      | string | no         | Description                                                                       |
